projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec5d176
)
Clear to end of window if passing zero width or height to gdk_window_clear_area ...
author
Alexander Larsson
<alexl@redhat.com>
Sat, 6 Dec 2008 21:55:09 +0000
(22:55 +0100)
committer
Alexander Larsson
<alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:07 +0000
(10:14 +0200)
gdk/gdkwindow.c
patch
|
blob
|
history
diff --git
a/gdk/gdkwindow.c
b/gdk/gdkwindow.c
index 5321ae0a7b2abd981fe1eb9a43bd725d44ba8471..5830f8ae1af9035f5a2b936086f7c6ff8bfaacb7 100644
(file)
--- a/
gdk/gdkwindow.c
+++ b/
gdk/gdkwindow.c
@@
-3309,6
+3309,13
@@
gdk_window_clear_area_internal (GdkWindow *window,
g_return_if_fail (GDK_IS_WINDOW (window));
+ /* This is what XClearArea does, and e.g. GtkCList uses it,
+ so we need to duplicate that */
+ if (width == 0)
+ width = private->width - x;
+ if (height == 0)
+ height = private->height - y;
+
if (private->paint_stack)
gdk_window_clear_backing_rect (window, x, y, width, height);
else